package vip.meeet.bean;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class TableBean {

    private Object v0;
    private Object v1;
    private Object v2;
    private Object v3;
    private Object v4;
    private Object v5;
    private Object v6;
    private Object v7;
    private Object v8;
    private Object v9;

    public Object getV0() {
        return v0;
    }

    public void setV0(Object v0) {
        this.v0 = v0;
    }

    public Object getV1() {
        return v1;
    }

    public void setV1(Object v1) {
        this.v1 = v1;
    }

    public Object getV2() {
        return v2;
    }

    public void setV2(Object v2) {
        this.v2 = v2;
    }

    public Object getV3() {
        return v3;
    }

    public void setV3(Object v3) {
        this.v3 = v3;
    }

    public Object getV4() {
        return v4;
    }

    public void setV4(Object v4) {
        this.v4 = v4;
    }

    public Object getV5() {
        return v5;
    }

    public void setV5(Object v5) {
        this.v5 = v5;
    }

    public Object getV6() {
        return v6;
    }

    public void setV6(Object v6) {
        this.v6 = v6;
    }

    public Object getV7() {
        return v7;
    }

    public void setV7(Object v7) {
        this.v7 = v7;
    }

    public Object getV8() {
        return v8;
    }

    public void setV8(Object v8) {
        this.v8 = v8;
    }

    public Object getV9() {
        return v9;
    }

    public void setV9(Object v9) {
        this.v9 = v9;
    }

    public static void invokeMethod(int i,TableBean instance,Object value){
        Method method;
        try {
            method = TableBean.class.getMethod("setV"+i, Object.class);
            method.invoke(instance,value);
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        }
    }
}
